package top.hhydra.mimall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.hhydra.mimall.entity.User;
import top.hhydra.mimall.vo.ResponseVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SaiyaEmon
 * @since 2020-02-08
 */
public interface IUserService extends IService<User> {
    /**
     * 注册
     * @param user
     * @return
     */
    ResponseVo<User> register(User user);

    /**
     * 登录
     * @param user
     * @return
     */
    ResponseVo<User> login(User user);

}
